package com.xbongbong.paas.pojo.dto;

import com.xbongbong.paas.enums.DelEnum;
import com.xbongbong.paas.toolbox.wrap.BaseDTO;
import com.xbongbong.paas.toolbox.wrap.QueryIgnore;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import javax.validation.constraints.NotNull;

/**
 * @author: wufeng
 * @date: 2018/12/20 14:26
 * @desrcption: 获取当前表单的关联列表
 */
@Getter
@Setter
@ToString
public class AssociationListDTO extends BaseDTO {
    private static final long serialVersionUID = 3400340786760787842L;

    /**
     * 应用id
     */
    @NotNull(message = "{dto.msg.addBatch.appId.NotNull}")
    @Getter(onMethod_ = {@QueryIgnore})
    private Long appId;
    /**
     * 菜单id
     */
    @NotNull(message = "{dto.msg.associationList.menuId.NotNull}")
    @Getter(onMethod_ = {@QueryIgnore})
    private Long menuId;
    /**
     * 表单id
     */
    @NotNull(message = "{dto.msg.associationList.formId.NotNull}")
    @Getter(onMethod_ = {@QueryIgnore})
    private Long formId;

    private Integer del;

    public AssociationListDTO(){
        del = DelEnum.NORMAL.getDel();
    }
}
